package com.enjoyor.soa.traffic.server.efoms.dubbo.impl;

import com.alibaba.dubbo.config.annotation.Service;
import com.enjoyor.soa.traffic.api.dto.efoms.DeviceWranInfoDto;
import com.enjoyor.soa.traffic.api.service.dubbo.efoms.IDubboDeviceWranInfoService;
import com.enjoyor.soa.traffic.server.efoms.dubbo.manage.ManageDeviceWranInfoService;
import com.enjoyor.soa.traffic.util.pojo.Page;
import com.enjoyor.soa.traffic.util.pojo.ResultPojo;
import org.springframework.beans.factory.annotation.Autowired;

@SuppressWarnings("rawtypes")
@Service(version = "1.0.0", timeout = 4000)
public class DubboDeviceWranInfoService implements IDubboDeviceWranInfoService {
	
	@Autowired
	private ManageDeviceWranInfoService manageDeviceWranInfoService;
    
    @Override
    public ResultPojo selectDeviceWranInfoById(String devWranId){
    	ResultPojo resultPojo = manageDeviceWranInfoService.selectDeviceWranInfoById(devWranId);
    	return resultPojo;
    }

    @Override
	public ResultPojo selectDeviceWranInfoList(String devWranId, String devCategoryCode, String devTypeCode,
			String devId, String devName, String key, String wranTypeCode, String wranLevelCode, String wranContent,
			String isRecover, String wranStartTime, String wranEndTime){
		ResultPojo resultPojo = manageDeviceWranInfoService.selectDeviceWranInfoList(devWranId, devCategoryCode,
				devTypeCode, devId, devName, key, wranTypeCode, wranLevelCode, wranContent, isRecover, wranStartTime,
				wranEndTime);
		return resultPojo;
	}
    
    @Override
    public ResultPojo selectDeviceWranInfoPage(Page page, String devWranId, String devCategoryCode, String devTypeCode,
			String devId, String devName, String key, String wranTypeCode, String wranLevelCode, String wranContent,
			String isRecover, String wranStartTime, String wranEndTime) {
		ResultPojo resultPojo = manageDeviceWranInfoService.selectDeviceWranInfoPage(page, devWranId, devCategoryCode,
				devTypeCode, devId, devName, key, wranTypeCode, wranLevelCode, wranContent, isRecover, wranStartTime,
				wranEndTime);
		return resultPojo;
    }
    
    @Override
    public ResultPojo insertDeviceWranInfo(DeviceWranInfoDto deviceWranInfoDto, String personName) {
    	ResultPojo resultPojo = manageDeviceWranInfoService.insertDeviceWranInfo(deviceWranInfoDto, personName);
    	return resultPojo;
    }
    
    @Override
    public ResultPojo updateDeviceWranInfo(DeviceWranInfoDto deviceWranInfoDto, String personName) {
    	ResultPojo resultPojo = manageDeviceWranInfoService.updateDeviceWranInfo(deviceWranInfoDto, personName);
    	return resultPojo;
    }
    
    @Override
    public ResultPojo deleteDeviceWranInfo(String devWranId, String personName) {
    	ResultPojo resultPojo = manageDeviceWranInfoService.deleteDeviceWranInfo(devWranId, personName);
    	return resultPojo;
    }
}
